package com.reder.practice.dao;

import com.reder.practice.bean.Manager;

import java.util.List;

/**
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/23 13:56:27</p>
 */
public interface ManagerDao {
    int deleteByPrimaryKey(Long id);

    int insert(Manager record);

    int insertSelective(Manager record);

    Manager selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);

    // 根据用户名查找
    Manager selectByUsername(String username);

    // 统计用户名个数
    int countByUsername(String username);

    // 列出所有管理员
    List<Manager> listManagers();
}